package obj.day5;

/**
 * @author げっしょく
 * @date 2021/7/21
 */
public class Test6 {
    public static void main(String[] args) {
        int abs = Math.abs(19);
        int abs1 = Math.abs(-19);
        int max = Math.max(10, 20);
        int min = Math.min(10, 20);
        double pow = Math.pow(2, 3);
        double ceil = Math.ceil(10.1);
        double floor = Math.floor(10.9);
        long round = Math.round(10.5);
        long round1 = Math.round(10.4);
        System.out.println("19绝对值"+abs);
        System.out.println("-19绝对值"+abs1);
        System.out.println("最大值"+max);
        System.out.println("最小值"+min);
        System.out.println("次方"+pow);
        System.out.println("1001向上取整"+ceil);
        System.out.println("1.9向下取整的结果为"+floor);
        System.out.println("10.5的结果为"+round);
        System.out.println("10.4的结果为"+round1);
    }
}
